<?php
declare(strict_types=1);
/**
 * Created by PhpStorm
 * User: Administrator
 * Date: 2023/11/16
 * Time: 13:52:20
 */

namespace App\Amqp\Producer;

use Hyperf\Amqp\Annotation\Producer;
use \Hyperf\Amqp\Message\ProducerMessage;
use Hyperf\Amqp\Message\Type;

/**
 * BBC商品分组队列生产者
 * @Producer(exchange="BBC_GOODS_GROUP",routingKey="BBC_GOODS_GROUP")
 */
class GoodsGroupProducer extends ProducerMessage
{
    protected $type = Type::DIRECT;
    public function __construct($data)
    {
        $this->payload = $data;
    }
}